//
//  FlightPayResult.m
//  ELife
//
//  Created by xiaozhi on 11-8-6.
//  Copyright 2011年 __MyCompanyName__. All rights reserved.
//

#import "FlightPayResult.h"
#import "UIViewUtil.h"

@implementation FlightPayResult
@synthesize msgLabel, titleLabel, resultTitle, resultMsg;


- (id)initWithMsg:(NSString *)msg withTitle:(NSString *)title
{
    self = [self initWithNibName:@"FlightPay" bundle:nil];
    if (self) {
        self.resultTitle = title;
        self.resultMsg = msg;
    }
    return self;
}

- (void)back
{
    [self.navigationController popViewControllerAnimated:YES];
}

- (void)dealloc
{
    [resultMsg release];
    [resultTitle release];
    [titleLabel release];
    [msgLabel release];
    [super dealloc];
}

- (void)didReceiveMemoryWarning
{
    // Releases the view if it doesn't have a superview.
    [super didReceiveMemoryWarning];
    
    // Release any cached data, images, etc that aren't in use.
}

#pragma mark - View lifecycle

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    self.view.backgroundColor = [UIViewUtil getCommonBg];
    [titleLabel setText:resultTitle];
    [msgLabel setText:resultMsg];

}

- (void)viewDidUnload
{
    [super viewDidUnload];
    // Release any retained subviews of the main view.
    // e.g. self.myOutlet = nil;
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    // Return YES for supported orientations
    return (interfaceOrientation == UIInterfaceOrientationPortrait);
}

@end
